# a = 10
# print(a)
# a = 20
# print(a)

# a = 10
# print(type(a))
# b = 0.3
# print(type(b))  # Python中的float就是双精度浮点数,等同于C++中的double
# c = 'hello world'
# print(type(c))

# d = "My name is 'hulu'"
# e = 'My name is "hulu"'
# f = """'My' name is "zzy" """
# g = ''''My' name is "zzy"'''
# print(f)
# print(g)
#
# print(len(d))
#
# a1 = 'hello '
# a2 = 'world'
# a1 += a2
# print(a1)

# a = True
# b = False
# print(type(a))
# print(type(b))

# a:int = 10
# print(type(a))
# a = 'hello'
# print(type(a))

"""
这是一段文档字符串,起到的作用和注释一样,也是解释说明的作用.
"""

# a = 10
# # 希望使用 print 打印出 "a = 10"这样的内容
# # 我们希望把数字和字符串混在一起来打印~
# print(f"a = {a}")
# print(f"a = {a+10}")

# 通过控制台,来输入一个数据

# num = input("请输入一个整数: ")
# print(type(num))
# print(f"您输入的数字是:{num}")

# a = input("请输入第一个整数: ")
# b = input("请输入第二个整数: ")
# a = int(a)
# b = int(b)
# print(f"a+b = {a+b}")


# 输入四个小数,求四个小数的平均值

a = input("请输入第一个数字: ")
b = input("请输入第二个数字: ")
c = input("请输入第三个数字: ")
d = input("请输入第四个数字: ")

a = float(a)
b = float(b)
c = float(c)
d = float(d)
avg =(a + b + c + d)/4
print(f"平均值是:{avg}")